package com.yict.csms.company.dao.impl;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.yict.common.dao.impl.CommonDao;
import com.yict.csms.company.entity.Company;

/**
 * 
 * 
 * @author Patrick.Deng
 * 
 */
@Repository
@Scope(value="singleton")
public class CompanyDaoImpl extends CommonDao<Company, Long> {

	public Company findById(Long id){
		return (Company)this.getTemplate().get(Company.class, id);
	}
}
